package com.atguigu.gulimail.search.Vo;

import com.atguigu.common.es.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchResult {

    //查询到的所有商品信息
    private List<SkuEsModel> products;

    /**
     * 分页信息
     */
    private Integer pageNum;//当前页码
    private Long total;//总记录数
    private Integer totalPage;//总页码

    private List<Integer>  pageNavs;

    private List<NavVo> navs;

    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;
    }

    private List<BrandVo> brandVos;//当前查询到的结果涉及到的品牌
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    private List<AttrVo> attrVos;//当前查询到的结果涉及到的所有属性，以及属性值；
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    private List<CatelogVo> catelogVos;//当前查询到的结果涉及到的分类；
    @Data
    public static class CatelogVo{
        private Long catelogId;
        private String catelogName;
    }
    /**  ------------------以上是返回给页面的信息------------------------------------*/
}
